package global

import (
	"trade_api/config"
	"trade_api/contracts/portal"
	"trade_api/rabbitmq"

	"github.com/FISCO-BCOS/go-sdk/client"
	"github.com/ethereum/go-ethereum/common"
	ut "github.com/go-playground/universal-translator"

	pb "trade_api/proto"
)

var (
	Trans ut.Translator

	// fisco bcos client
	Client               *client.Client
	PortalManager        *portal.Portal
	PortalManagerAddress common.Address
	Deployer             common.Address
	PortalProver         common.Address
	TradeProver          common.Address
	TradeAuditor         common.Address

	// NacosConfig nacos配置
	NacosConfig *config.NacosConfig
	// ServerConfig 全局配置变量
	ServerConfig *config.PortalApiConfig
	// PortalRpcClient 门架记录服务客户端
	PortalRpcClient pb.PortalRecordClient
	// TradeRpcClient 交易记录服务客户端
	TradeRpcClient pb.TradeRecordClient

	// rabbitmq
	Producer *rabbitmq.RabbitMQ
)
